import React from 'react';

const CommentList = ({ comments }) => {
    return (
        <div className="comment-list-component">
            <label>评论列表</label>
            <ul className="list-group">
            {
                comments.map((comment, index) => {
                    return <li key={index} className="list-group-item"> { comment } </li>
                })
            }
            </ul>
        </div>
    )
}

export default CommentList;